package com.example.xiaomengai.mapper;




import com.example.xiaomengai.entity.Neo4j;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.stereotype.Repository;

/**
 * 功能
 * 作者：梦天
 * 日期：2025/4/26 16:36
 */
@Repository
public interface KnowledgeGraphMapper extends Neo4jRepository<Neo4j,Long> {


    @Query("MATCH (n:neo4j {name: $name}) RETURN n")  // 忽略标签
    Neo4j findByName(String name);
}
